package com.quarkus.resource;

import com.quarkus.entity.des.UserDes;
import io.quarkus.hibernate.orm.PersistenceUnit;

import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.ws.rs.GET;
import javax.ws.rs.Path;

/**
 * @Author: TongRui乀
 * @Date: 2021/3/28 15:12
 * @description：
 */
@Path("des")
public class UserDesResource {

    @Inject
    @PersistenceUnit("des")
    EntityManager entityManager;

    @GET
    @Path("{id}")
    public UserDes get(Integer id){
        return entityManager.find(UserDes.class, id);
    }

}
